package com.huaxinkai.mobile.service;

import java.util.List;

import com.huaxinkai.entity.UserEntity;;

public interface IUserService {
	
	/**
	 * 获取User
	 * @return List<User>
	 */
	public List<UserEntity> getUsers() throws Exception;
	/**
	 * 获取User
	 * @return List<User>
	 */
	public UserEntity getUser(int id)  throws Exception;
	/**
	 * 获取User
	 * @return List<User>
	 */
	public UserEntity getUser(String name, String password)  throws Exception;
	/**
	 * 增加User
	 * @return boolean
	 */
	public boolean addUser(UserEntity user)  throws Exception;
	/**
	 * 更新User
	 * @return boolean
	 */
	public boolean updateUser(UserEntity user)  throws Exception;
	/**
	 * 删除User
	 * @return boolean
	 */
	public boolean deleteUserById(int id)  throws Exception;
	

}
